<form class="layui-form layui-box" style='padding:25px 30px 20px 0' action="__SELF__" data-auto="true" method="post">
    <div class="layui-form-item">
        <label class="layui-form-label layui-form-required">邮箱</label>
        <div class="layui-input-block">
            <input name="email" placeholder="请输入邮箱" class="layui-input" value="{$user.email}" lay-verType="tips" lay-verify="required|email" required />
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label layui-form-required">状态</label>
        <div class="layui-input-block">
            <input type="radio" name="type" value="1" title="已验证" {if $user.email_zt==1}checked{/if}>
            <input type="radio" name="type" value="0" title="未验证" {if $user.email_zt==0}checked{/if}>
        </div>
    </div>
    <div class="hr-line-dashed"></div>
    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit' lay-filter="passwordSubmit" lay-submit>保存</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消吗？" data-close>取消</button>
    </div>

</form>

<script>
    layui.use(['layer', 'form'], function () {
        var form = layui.form;
        var $ = layui.jquery;
        form.render();
    });
</script>